using ASP;
using HoWave.Common;
using HoWave.Web;
using HoWave.Web.Admin;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.WebControls;
public class HL_Admin_Admin_TemplatePageSet : Admin, IRequiresSessionState
{
	protected TextBox Index;
	protected TextBox MemberIndex;
	protected TextBox UserReg;
	protected TextBox Login;
	protected TextBox Passport;
	protected TextBox CategoryList;
	protected TextBox ProductList;
	protected TextBox ShowProduct;
	protected TextBox PublishPreview;
	protected TextBox Sell;
	protected TextBox ProductCompare;
	protected TextBox Browseoffer;
	protected TextBox RequestProduct;
	protected TextBox ClassChoose;
	protected TextBox SaleProduct;
	protected TextBox ProductEdit;
	protected TextBox ShopIntro;
	protected TextBox ShopReview;
	protected TextBox ShopAllMessage;
	protected TextBox CommonShopIndex;
	protected TextBox SeniorShopIndex;
	protected TextBox ShopIndex;
	protected TextBox ShopList;
	protected TextBox ShopBuy;
	protected TextBox ShopingCar;
	protected TextBox SpecialDefault;
	protected TextBox SearchProduct;
	protected TextBox SearchShop;
	protected TextBox IdentifyChoose;
	protected TextBox IdentifyAgree;
	protected TextBox IdentifyUser;
	protected TextBox IdentifyCompany;
	protected TextBox IdentifySuccess;
	protected TextBox IdentifyAlert;
	protected TextBox Article;
	protected TextBox ArticleList;
	protected TextBox Announce;
	protected TextBox AdminError;
	protected TextBox AdminSuccess;
	protected TextBox ShopError;
	protected TextBox ShopSuccess;
	protected TextBox MemberError;
	protected TextBox MemberSuccess;
	protected Button UpdatePageSetButton;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!base.admin.CheckAdminPower(13))
		{
			base.WriteLog("View", Language.GetAdminMsg("Log/Access", "0"), "TemplatePath");
			base.WriteRightErrMsg();
		}
		if (!base.admin.CheckAdminPower(13))
		{
			this.UpdatePageSetButton.Enabled = false;
		}
		if (!base.IsPostBack)
		{
			this.BindList();
		}
	}
	protected void BindList()
	{
		this.Index.Text = this.config["Index"].ToString();
		this.MemberIndex.Text = this.config["MemberIndex"].ToString();
		this.UserReg.Text = this.config["UserReg"].ToString();
		this.Login.Text = this.config["Login"].ToString();
		this.Passport.Text = this.config["Passport"].ToString();
		this.CategoryList.Text = this.config["CategoryList"].ToString();
		this.ProductList.Text = this.config["ProductList"].ToString();
		this.ShowProduct.Text = this.config["ShowProduct"].ToString();
		this.PublishPreview.Text = this.config["PublishPreview"].ToString();
		this.Sell.Text = this.config["Sell"].ToString();
		this.ProductCompare.Text = this.config["ProductCompare"].ToString();
		this.Browseoffer.Text = this.config["Browseoffer"].ToString();
		this.RequestProduct.Text = this.config["RequestProduct"].ToString();
		this.ClassChoose.Text = this.config["ClassChoose"].ToString();
		this.SaleProduct.Text = this.config["SaleProduct"].ToString();
		this.ProductEdit.Text = this.config["EditProduct"].ToString();
		this.ShopIntro.Text = this.config["ShopIntro"].ToString();
		this.ShopReview.Text = this.config["ShopReview"].ToString();
		this.ShopAllMessage.Text = this.config["ShopAllMessage"].ToString();
		this.CommonShopIndex.Text = this.config["CommonShopIndex"].ToString();
		this.SeniorShopIndex.Text = this.config["SeniorShopIndex"].ToString();
		this.ShopIndex.Text = this.config["ShopIndex"].ToString();
		this.ShopList.Text = this.config["ShopList"].ToString();
		this.ShopBuy.Text = this.config["ShopBuy"].ToString();
		this.SpecialDefault.Text = this.config["SpecialDefault"].ToString();
		this.SearchProduct.Text = this.config["SearchProduct"].ToString();
		this.SearchShop.Text = this.config["SearchShop"].ToString();
		this.IdentifyChoose.Text = this.config["IdentifyChoose"].ToString();
		this.IdentifyAgree.Text = this.config["IdentifyAgree"].ToString();
		this.IdentifyUser.Text = this.config["IdentifyUser"].ToString();
		this.IdentifyCompany.Text = this.config["IdentifyCompany"].ToString();
		this.IdentifySuccess.Text = this.config["IdentifySuccess"].ToString();
		this.Article.Text = this.config["Article"].ToString();
		this.ArticleList.Text = this.config["ArticleList"].ToString();
		this.Announce.Text = this.config["Announce"].ToString();
		this.ShopingCar.Text = this.config["ShopingCar"].ToString();
		this.AdminError.Text = this.config["AdminError"].ToString();
		this.AdminSuccess.Text = this.config["AdminSuccess"].ToString();
		this.ShopError.Text = this.config["ShopError"].ToString();
		this.ShopSuccess.Text = this.config["ShopSuccess"].ToString();
		this.MemberError.Text = this.config["MemberError"].ToString();
		this.MemberSuccess.Text = this.config["MemberSuccess"].ToString();
	}
	protected void UpDateConfig(object sender, EventArgs e)
	{
		SiteConfigBll siteConfigBll = new SiteConfigBll();
		if (siteConfigBll.UpdateTemplateSet(this.UserReg.Text, this.Login.Text, this.Passport.Text, this.ShowProduct.Text, this.Sell.Text, this.ProductCompare.Text, this.CategoryList.Text, this.ProductList.Text, this.ShopList.Text, this.ShopBuy.Text, this.ShopIndex.Text, this.Index.Text, this.SpecialDefault.Text, this.Browseoffer.Text, this.SearchProduct.Text, this.Article.Text, this.ArticleList.Text, this.ShopReview.Text, this.ShopIntro.Text, this.MemberIndex.Text, this.IdentifySuccess.Text, this.IdentifyCompany.Text, this.IdentifyUser.Text, this.IdentifyAgree.Text, this.IdentifyChoose.Text, this.PublishPreview.Text, this.Announce.Text, this.CommonShopIndex.Text, this.SeniorShopIndex.Text, this.ClassChoose.Text, this.SaleProduct.Text, this.ProductEdit.Text, this.IdentifyAlert.Text, this.SearchShop.Text, this.ShopAllMessage.Text, this.RequestProduct.Text, this.ShopingCar.Text, this.AdminError.Text, this.AdminSuccess.Text, this.ShopError.Text, this.ShopSuccess.Text, this.MemberError.Text, this.MemberSuccess.Text))
		{
			this.WriteSuccessMsg("", Language.GetAdminMsg("Common/EditSuccess"), "Admin_TemplatePageSet.aspx");
		}
		else
		{
			this.WriteErrMsg("", Language.GetAdminMsg("Common/EditFail"), "");
		}
	}
}
